home *** CD-ROM | disk | FTP | other *** search
Wrap
<html> <head> <LINK REL="stylesheet" TYPE="text/css" HREF="%1css/default.css"> </head> <body LEFTMARGIN="5" RIGHTMARGIN="5" onLoad="JavaScript:reset();"> <DIV ID="tooltip" STYLE="position:absolute;visibility:hidden;z-index:99;"></DIV> <SCRIPT SRC="%1js/helps.js"></SCRIPT> <SCRIPT SRC="%1js/tips.js"></SCRIPT> <SCRIPT SRC="%1js/FormChek.js"></SCRIPT> <script language="Javascript"> //LOCALIZATION STRINGS var L_SIZE_NOT_VALID = "Report alert record size must be a number greater or equal to zero."; </script> <SCRIPT Language="JavaScript"> var numOfAlerts = %3; function update() { var i; var alertSize; // Validate only if destination is enabled. if ( document.forms.alertnotify.notifyenabledchk.checked == true ) { // validate main for ( i = 1; i<= numOfAlerts; i++) { alertSize = "maxalertsize" + i; if ( !isNonnegativeInteger( document.forms.alertnotify.elements[alertSize].value, false ) ) { alert( L_SIZE_NOT_VALID ); document.forms.alertnotify.elements[alertSize].focus(); mainValidated = false; return; } } // validate destination if ( !destOKToSubmit() ) return; } document.forms.alertnotify.submit(); } function reset() { document.forms.alertnotify.reset(); resetDest(); disableAlertNotification(); } function disableAlertNotification() { var doDisableAll; if (document.forms.alertnotify.notifyenabledchk.checked == true) { document.forms.alertnotify.elements.alertnotifyenabled.value = "true"; doDisableAll = false; } else { document.forms.alertnotify.elements.alertnotifyenabled.value = "false"; doDisableAll = true; } // disable all common form elements document.forms.alertnotify.msg.disabled = doDisableAll; var i; var viewerURL; var alertSize; var linkbutton; for ( i = 1; i <= numOfAlerts; i++) { viewerURL = "viewerurl" + i; alertSize = "maxalertsize" + i; linkbutton = "linkbutton" + i; document.forms.alertnotify.elements[viewerURL].disabled = doDisableAll; document.forms.alertnotify.elements[alertSize].disabled = doDisableAll; document.forms.alertnotify.elements[linkbutton].disabled = doDisableAll; } // call destination speicific disable function onSetDestDisabled( doDisableAll); } function useSILink( idx ) { document.forms.alertnotify.elements["viewerurl"+idx].value = "%SI_VIEWER_URL%"; } </SCRIPT> <FORM name="alertnotify" method="post" action="%2"> <INPUT name="server_default" type="hidden"> <SPAN class=listSelected>Set alert notification.</SPAN><BR> When scheduling the report, you can choose whether to send out alert notification or not. With alert notification disabled, alerts may still be triggered.<BR> <BR> <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" width="100%"> <TR> <TD width="3%"> </TD> <TD class=list> <TABLE cellpadding="0" cellspacing="0" border="0" width="100%"> <TR> <TD class=list> <INPUT name="notifyenabledchk" type=checkbox %6 onClick="JavaScript:disableAlertNotification();"> Enable alert notification.</INPUT> <INPUT name="alertnotifyenabled" type=hidden value=""> </TD> </TR> </TABLE> </TD> </TR> <TR> <TD> </TD> <TD class=list><BR> <!-- destination --> <SCRIPT language="JavaScript"> //LOCALIZATION STRINGS var L_FROM_FIELD_EMPTY = "The From field cannot be empty."; var L_TO_FIELD_EMPTY = "The To field cannot be empty."; </SCRIPT> <SCRIPT language="JavaScript"> function resetDest() { // custom destionation reset here. } function onSetDestDisabled( doDisableAll ) { document.forms.alertnotify.smtpdefault[0].disabled = doDisableAll; document.forms.alertnotify.smtpdefault[1].disabled = doDisableAll; //if we need to renable, we need to figure out whether we're using the default. var disableTheRest = true; if ( doDisableAll == false ) { if ( document.forms.alertnotify.smtpdefault[1].checked == true ) disableTheRest = false; } onSetUseDefault( disableTheRest); } function onSetUseDefault( useDefault ) { document.forms.alertnotify.sender.disabled = useDefault; document.forms.alertnotify.to.disabled = useDefault; document.forms.alertnotify.cc.disabled = useDefault; document.forms.alertnotify.subject.disabled = useDefault; } function destOKToSubmit() { //check for destination only if we are using some custom settings if ( document.forms.alertnotify.smtpdefault[1].checked == true ) { if ( document.forms.alertnotify.sender.value == "" ) { alert( L_FROM_FIELD_EMPTY ); document.forms.alertnotify.sender.focus(); return false; } if ( document.forms.alertnotify.to.value == "" ) { alert( L_TO_FIELD_EMPTY ); document.forms.alertnotify.to.focus(); return false; } document.forms.alertnotify.server_default.value = "false"; } else { document.forms.alertnotify.server_default.value = "true"; } return true; } </SCRIPT> Configure alert notification email delivery options.<BR> <BR> <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" width="100%"> <TR><TD width="3%"> </TD> <TD class=list> You can send the alerts to an SMTP server with a choice of two different sets of values:<BR> <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0"> <TR> <TD class=list colSpan=2><INPUT onclick="javascript:onSetUseDefault(true);" type=radio %7 name=smtpdefault value="true"> Use the Crystal Job Server's defaults </TD> </TR> <TR> <TD class=list colSpan=2><INPUT onclick="javascript:onSetUseDefault(false);" type=radio %8 name=smtpdefault value="false"> Set the values to be used at schedule time here: </TD> </TR> <TR> <TD WIDTH="5%"> </TD> <TD> <TABLE> <TBODY> <TR> <TD> </TD> <TD class=list vAlign=top>From:</TD> <TD class=list><INPUT size=40 name=sender value="%9"></TD> </TR> <TR> <TD> </TD> <TD class=list vAlign=top>To:</TD> <TD class=list><INPUT size=40 name=to value="%10"></TD> </TR> <TR> <TD> </TD> <TD class=list vAlign=top>Cc:</TD> <TD class=list><INPUT size=40 name=cc value="%11"></TD> </TR> <TR> <TD> </TD> <TD class=list vAlign=top>Subject:</TD> <TD class=list><INPUT size=40 name=subject value="%12"></TD> </TR> </TBODY> </TABLE> </TD> </TR> </TABLE> </TD></TR> </TABLE> <BR> Compose a message that will be shown in the alert notification before all alert messages.<BR> <BR> <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" width="100%"> <TR> <TD WIDTH="3%"> </TD> <TD> <TABLE width="100%"> <TR><TD class=list> Message:<BR> <TEXTAREA name=msg rows=7 wrap=virtual cols=40>%5</TEXTAREA><BR> </TD></TR> </TABLE> </TD> </TR> </TABLE> <BR> Set viewing URL and number of alerts. To see the most recent list of alerts, click on Refresh in Properties Page.<BR> <BR> <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" WIDTH="100%"> <TR> <TD WIDTH="3%"> <INPUT TYPE=HIDDEN NAME="numalerts" value="%3"></TD> <TD> <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" WIDTH="100%"> <TR CLASS="listHeading" WIDTH="100%"> <TD CLASS="listHeading" WIDTH="15%" ALIGN="LEFT"><span ID="text"> Alert Name</SPAN></TD> <TD CLASS="listHeading" WIDTH="55%" ALIGN="LEFT"><span ID="text">Viewer URL</SPAN></TD> <TD CLASS="listHeading" WIDTH="20%" ALIGN="LEFT"><span ID="text">Maximum Alert Records</SPAN></TD> <TD CLASS="listHeading" WIDTH="10%" ALIGN="LEFT"><span ID="text">Status</SPAN></TD> </TR> %4 </TABLE> </TD> </TR> </TABLE> <TABLE cellpadding="0" cellspacing="0" border="0" width="100%"> <TR> <TD align="right"> <TABLE cellpadding="0"> <TR valign=center> <TD class="clsButton" align="middle" nowrap> <div class="clsButton"><a href="javascript:update();" onMouseOver="St(17);window.status='';return true;" onMouseOut="Ht()"> Update </a></div> </TD> <TD class="clsButton" align="middle" nowrap> <div class="clsButton"><a href="javascript:reset();" onMouseOver="St(17);window.status='';return true;" onMouseOut="Ht()"> Reset </a></div> </TD> </TR> </TABLE> </TD> </TR> </TABLE> </TD> </TR> </TABLE> </body> </html>